/*
 * ContentIdentifierQueryElement.java
 *
 * Created on September 8, 2007, 9:28 AM
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package org.adl.registry.website.lucene;

/**
 *
 * @author Jacob
 */
public class ContentIdentifierQueryElement implements QueryElement
{
    private String mElementValue;
    
    /** Creates a new instance of MetadataIdentifierQueryElement */
    public ContentIdentifierQueryElement()
    {
    }
    
    /** Creates a new instance of MetadataIdentifierQueryElement */
    public ContentIdentifierQueryElement(String elementValue)
    {
        this.setElementValue(elementValue);
    }
    
    public String getElementValue()
    {
        return this.mElementValue;
    }
    
    public void setElementValue(String elementValue)
    {
        if ((elementValue == null) || (elementValue.length() == 0))
        {
            //TODO: throw exception
        }
        
        this.mElementValue = elementValue;
    }
    
    public String toString()
    {
        return "contentIdentifier:" + this.mElementValue;
    }
}
